<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/common/include.jsp"%>
<%@ page import="com.ekingstar.framework.security.UserUtil"%>

	<%
		
		boolean logged = UserUtil.isLogged();
		if (!logged){
	%>
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title></title>
<style type="text/css">
body{
	margin:0px; padding:0px;
}
.login{
	background:url(images/login.jpg) no-repeat center; height:606px; width:1000px; vertical-align:top;
}
.logo{
	background:url(images/logo.png) no-repeat;position:absolute; height:50px;  width:200px; margin:220px 0 0 200px;
}
.xmname{
	font-size:26px; color:white; font-weight:bold; position:absolute; margin:280px 0 0 200px; font-family:黑体;
}
.btnlogin{
	position:absolute;margin:299px 0 0 760px; 
}
input{
	border:0px;
}
</style>
</head>

<body>
<s:if
			test="#session.SPRING_SECURITY_LAST_EXCEPTION != null">
			<div style="position:absolute;top:150px;left:600px;color:red">
			${SPRING_SECURITY_LAST_EXCEPTION.message}
			</div>
			
</s:if>
<table align="center" cellpadding="0" cellspacing="0">
	<form id="form" action='/j_spring_security_check' method='POST'>
	<tr>
		<td class="login">
		<div class="logo"></div>
		<div class="xmname">组织部信息系统</div>
		<div style="position:absolute;margin:248px 0 0 288px;"><input value="<s:property value='#session.SPRING_SECURITY_LAST_USERNAME'/>" name="j_username" type="text"/></div>
		<div style="position:absolute;margin:304px 0 0 288px;"><input name="j_password" type="password" /></div>
		<div><input name="imageCodeName" type="text"/><img src='<s:url value="/codeimage"/>' style="cursor: pointer; " 
		  onclick="this.src='<s:url value="/codeimage"/>?'+Math.floor(Math.random()*100)" ></div>
		<div class="btnlogin"><img src="images/btn_login.gif" onclick="document.getElementById('form').submit();" style="cursor: pointer; "/></div>
		</td>
	</tr>
	<tr>
	<td>
		
	</td>
	</tr>
	
	</form>
</table>
</body>

</html>
	
	<%} else {%>
		<html>
		<head>
		<title>基础平台-组织部</title>
		</head>
		<frameset border="0" frameSpacing="0" rows="120,*,25" frameBorder="0" name="top">
		
		<frame name="banner" src="index/top.jsp" noResize scrolling="no">
		
		<frameset border="0" frameSpacing="0" cols="185,*" MARGINWIDTH="0" MARGINHEIGHT="0" LEFTMARGIN="0" TOPMARGIN="0" noResize scrolling="no" name="forum">
		
		<frame border="0" name="contents" marginWidth="0" marginHeight="0" src="index/leftframe.jsp" frameBorder="0" LEFTMARGIN="0" TOPMARGIN="0">
		
		<frame border="0" name="main" border Color="#FFFFFF" src="index/rightframe.jsp" frameBorder="no">
		
		</frameset>
		<frame name="bottom" src="index/bottom.jsp" noResize scrolling="no" >
		</frameset>
		</html>
	<%}%>
